package com.aaa.charge.api.BackfeeList;

import com.aaa.charge.service.BackfeeItemService;
import com.aaa.entity.OrderBackfee;
import com.aaa.entity.OrderBackfeeItem;
import com.aaa.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author pzs
 * @date 2023/3/24 17:01
 * @description ApiBackfeeItemController
 */
@RestController
@RequestMapping("charge/api/orderBackfeeItem")
public class ApiBackfeeItemController {
    @Resource
    private BackfeeItemService orderBackfeeItemService;
    /**
     *查询详情
     * @return
     */
    @GetMapping("allBackfeeItem/{backfeeId}")
    public Result<List<OrderBackfeeItem>> allChargeItem(@PathVariable String backfeeId){
        return orderBackfeeItemService.allBackfeeItem(backfeeId);
    }

}
